clearDatabase{
  org.springframework.data.neo4j.support.node.Neo4jHelper.cleanDb
}
shouldAllowDirectTagTypeCreation{
  org.springframework.data.neo4j.support.Neo4jTemplate.count
  org.springframework.data.neo4j.support.Neo4jTemplate.save
  org.springframework.data.neo4j.support.Neo4jTemplate.save
  org.springframework.data.neo4j.support.Neo4jTemplate.count
  Tag foundTag=tagRepository.findOne(utn.getNodeId());
  Assert.assertEquals(utn.getValue(),foundTag.getValue());
}
shouldPopulateDBWithTags{
  Iterable<Tag> tags=this.makeSomeTags();
}
shouldHaveCorrectNumberOfTags{
  this.makeSomeTags();
}
shouldFindAllTags{
  List<Tag> madeTags=Lists.newArrayList(this.makeSomeTags());
  Iterable<Tag> foundTags=tagRepository.findAll();
  for (  Tag foundTag : foundTags) {
    Assert.assertTrue(madeTags.contains(foundTag));
  Assert.assertEquals(madeTags.size(),countOfFoundTags);
}
shouldFindTagsByValue{
  for (  Tag t : this.makeSomeTags()) {
}
shouldFilterTagsWithoutSelectedTags{
  TagType universidad=null;
  org.springframework.data.neo4j.support.Neo4jTemplate.findAll
  Iterable<Tag> tags=tagRepository.filterTags(universidad.getNodeId());
  for (  Tag tag : tags) {
    Assert.assertTrue(tag.getValue().equalsIgnoreCase("UTN") || tag.getValue().equalsIgnoreCase("UBA"));
}
shouldFilterTagsWithOneSelectedTag{
  Tag utn=tagRepository.findByPropertyValue("value","UTN");
  Iterable<Tag> tags=tagRepository.filterTags(Sets.newHashSet(utn.getNodeId()),"Facultad");
  for (  Tag tag : tags) {
}
shouldFilterTagsWithManySelectedTags{
  Tag utn=tagRepository.findByPropertyValue("value","UTN");
  Tag frba=tagRepository.findByPropertyValue("value","FRBA");
  Iterable<Tag> tags=tagRepository.filterTags(Sets.newHashSet(utn.getNodeId(),frba.getNodeId()),"Materia");
  for (  Tag tag : tags) {
}
makeSomeTags{
  TagType universidad=new TagType("Universidad");
  TagType facultad=new TagType("Facultad");
  TagType carrera=new TagType("Carrera");
  TagType materia=new TagType("materia");
  facultad.addDependency(universidad);
  carrera.addDependency(facultad);
  materia.addDependency(carrera);
  org.springframework.data.neo4j.support.Neo4jTemplate.save
  org.springframework.data.neo4j.support.Neo4jTemplate.save
  org.springframework.data.neo4j.support.Neo4jTemplate.save
  org.springframework.data.neo4j.support.Neo4jTemplate.save
  Tag utn=new Tag(universidad,"UTN");
  Tag uba=new Tag(universidad,"UBA");
  Tag frba=new Tag(facultad,"FRBA");
  Tag fce=new Tag(facultad,"FCE");
  fce.addParent(uba);
  sistemas.addParent(frba);
  administracion.addParent(fce);
  am1.addParent(administracion);
  am1.addParent(sistemas);
  algoritmos.addParent(sistemas);
  tContable.addParent(administracion);
  org.springframework.data.neo4j.support.Neo4jTemplate.save
}
